home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9506 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: sunrise.gv.ssi1.com!news
  2. From: Mike Palmer <Mike.Palmer@tus.ssi1.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: mouse?
  5. Date: 2 Mar 1996 05:13:26 GMT
  6. Organization: Silicon Systems, Inc.
  7. Message-ID: <4h8ldm$4o8@atlas.tus.ssi1.com>
  8. References: <4h5gpk$h9v@cobain.rowan.edu>
  9. NNTP-Posting-Host: pc259u.tus.ssi1.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. josh@elvis.rowan.edu (Josh Bengal) wrote:
  16. >
  17. >anyone know how to get a turbo c++ dos program to be mouse compatible?
  18. >
  19. >-josh
  20. >
  21.  
  22. Ouch. I think Borland's short lived TurboVision product supported the 
  23. mouse directly, but other than that you are going to have to write your 
  24. own code to do it. The mouse interrupt is int33, as I recall, and there 
  25. are probably still books available on how to do this. 
  26.  
  27. Way back when, I did this for DOS programs in both text and graphics 
  28. mode, and it was generally nothing short of painful. Everything had
  29. to be done manually. The only good thing, as I recall, is that you 
  30. didn't have to write a continuous polling loop - the mouse driver will
  31. keep track of which buttons were pushed since the last call to the 
  32. driver.
  33.  
  34. But it almost sounded from your post like you wanted to take an 
  35. existing DOS application and add mouse compatibility to it. If that's 
  36. the case, you're probably in for some serious work. Essentially, you
  37. have to do all the work to check on the mouse at every point where it 
  38. could be used for input, and you have to take the appropriate action
  39. yourself. Compared to Windows, it's painful - but Windows makes up
  40. for that in other ways (programming Windows isn't easy either).
  41.  
  42. -- Mike --
  43.  
  44.  
  45.